#ifndef FORMMEMBERREGISTRATION_H
#define FORMMEMBERREGISTRATION_H

#include <QWidget>
#include <QSqlDatabase>
#include <QSqlTableModel>
#include <QAbstractItemModel>
#include <QAbstractButton>
#include <QDialogButtonBox>
#include <QShowEvent>

namespace Ui {
class FormMemberRegistration;
}

class FormMemberRegistration : public QWidget
{
    Q_OBJECT

public:
    explicit FormMemberRegistration(QSqlDatabase *db, QWidget *parent = 0);
    ~FormMemberRegistration();

private slots:
    void on_lineEditFindMember_textEdited(const QString &arg1);
    void on_toolButtonNewMember_clicked();
    void on_toolButtonReg_clicked();
    void on_toolButtonUnReg_clicked();
    bool updateData();
    bool commitData();
    void clickButton(QAbstractButton *button);

private:
    Ui::FormMemberRegistration *ui;
    void showEvent(QShowEvent *);

    QSqlDatabase *dbase;
};

#endif // FORMMEMBERREGISTRATION_H
